import * as types from './mutation-types'

export const changeFatherRouter = function ({commit}, fatherRouter) {
  commit(types.SET_FATHERROUTER, fatherRouter)
}

export const changeShowBar = function ({commit}, showBar) {
  commit(types.SET_SHOWBAR, showBar)
}

export const changeWhichType = function ({commit}, whichType) {
  commit(types.SET_WHICHTYPE, whichType)
}

export const chnagePublicToken = function ({commit}, publicToken) {
  commit(types.SET_PUBLICTOKEN, publicToken)
}

export const changeUserName = function ({commit}, userName) {
  commit(types.SET_USERNAME, userName)
}

export const changePassWord = function ({commit}, passWord) {
  commit(types.SET_PASSWORD, passWord)
}

export const changeUserId = function ({commit}, userId) {
  commit(types.SET_USERID, userId)
}

export const changeShowFlightInfo = function ({commit}, showFlightInfo) {
  commit(types.SET_SHOWFLIGHTINFO, showFlightInfo)
}

export const FlightInfo = function ({commit}, flightInfo) {
  commit(types.SET_FLIGHTINFO, flightInfo)
}

export const changeShowTimeInfo = function ({commit}, showTimeInfo) {
  commit(types.SET_SHOWTIMEINFO, showTimeInfo)
}

export const changeTimeInfo = function ({commit}, timeInfo) {
  commit(types.SET_TIMEINFO, timeInfo)
}

export const changeShowSearchBox = function ({commit}, showSearchBox) {
  commit(types.SET_SHOWSEARCHBOX, showSearchBox)
}

export const changeSearchBoxInfo = function ({commit}, searchBoxInfo) {
  commit(types.SET_SEARCHBOXINFO, searchBoxInfo)
}

export const changeDestination = function ({commit}, destination) {
  commit(types.SET_DESTINATION, destination)
}

export const changeShowEnd = function ({commit}, showEnd) {
  commit(types.SET_SHOWEND, showEnd)
}

export const PickType = function ({commit}, pickType) {
  commit(types.SET_PICKTYPE, pickType)
}

export const changeEstimatePrice = function ({commit}, estimatePrice) {
  commit(types.SET_ESTIMATEPRICE, estimatePrice)
}

export const changeShowTips = function ({commit}, showTips) {
  commit(types.SET_SHOWTIPS, showTips)
}

export const changeShowCarpool = function ({commit}, showCarpool) {
  commit(types.SET_SHOWCARPOOL, showCarpool)
}

export const changeShowCancel = function ({commit}, showCancel) {
  commit(types.SET_SHOWCANCEL, showCancel)
}

export const changeShowNoCall = function ({commit}, showNoCall) {
  commit(types.SET_SHOWNOCALL, showNoCall)
}

export const changeCarType = function ({ commit }, carType) {
  commit(types.SET_CARTYPE, carType)
}

export const changeOrderName = function ({ commit }, orderName) {
  commit(types.SET_ORDRENAME, orderName)
}

export const changeOrderPhone = function ({ commit }, orderPhone) {
  commit(types.SET_ORDERPHONE, orderPhone)
}

export const changeShowType = function ({ commit }, showType) {
  commit(types.SET_SHOWTYPE, showType)
}

export const changeShowInType = function ({ commit }, showInType) {
  commit(types.SET_SHOWINTYPE, showInType)
}

export const changeTime = function ({ commit }, time) {
  commit(types.SET_TIME, time)
}

export const changeSongTimeInfo = function ({ commit }, songTimeInfo) {
  commit(types.SET_SONGTIMEINFO, songTimeInfo)
}

export const CarStartTime = function ({ commit }, carStartTime) {
  commit(types.SET_CARSTARTTIME, carStartTime)
}

export const changeStartCoor = function ({ commit }, startCoor) {
  commit(types.SET_STARTCOOR, startCoor)
}

export const changeEndCoor = function ({ commit }, endCoor) {
  commit(types.SET_ENDCOOR, endCoor)
}

export const changeUserImg = function ({ commit }, userImg) {
  commit(types.SET_USERIMG, userImg)
}

export const changeShowSuccess = function ({ commit }, showSuccess) {
  commit(types.SET_SHOWSUCCESS, showSuccess)
}

export const changeShowDriver = function ({ commit }, showDriver) {
  commit(types.SET_SHOWDRIVER, showDriver)
}

export const changeDriverName = function ({ commit }, driverName) {
  commit(types.SET_DRIVERNAME, driverName)
}

export const changeDriverPhone = function ({ commit }, driverPhone) {
  commit(types.SET_DRIVERPHONE, driverPhone)
}

export const changeCarModel = function ({ commit }, carModel) {
  commit(types.SET_CARMODEL, carModel)
}

export const changeCarNum = function ({ commit }, carNum) {
  commit(types.SET_CARNUM, carNum)
}

export const changeRates = function ({ commit }, rates) {
  commit(types.SET_RATES, rates)
}

export const changeRated = function ({ commit }, rated) {
  commit(types.SET_RATED, rated)
}

export const changeShowState = function ({ commit }, showState) {
  commit(types.SET_SHOWSTATE, showState)
}

export const changeDsitence = function ({ commit }, dsitence) {
  commit(types.SET_DSITENCE, dsitence)
}

export const ArrivalInfo = function ({ commit }, arrivalInfo) {
  commit(types.SET_ARRIVALINFO, arrivalInfo)
}

export const changeShowArrival = function ({ commit }, showArrival) {
  commit(types.SET_SHOWARRIVAL, showArrival)
}

export const changeAutocompleList = function ({ commit }, autocompleList) {
    commit(types.SET_AUTOCOMPLETELIST, autocompleList)
}

export const showChangeNav = function ({ commit }, showChangeNav) {
    commit(types.SET_SHOWNAVBAR, showChangeNav)
}

export const nowtimes = function ({ commit }, nowtimes) {
    commit(types.SET_NOWTIMES, nowtimes)
}

export const upAddress = function ({ commit }, upAddress) {
    commit(types.SET_UPADDRESS, upAddress)
}

export const downAddress = function ({ commit }, downAddress) {
    commit(types.SET_DOWNADDRESS, downAddress)
}

export const waitTime = function ({ commit }, waitTime) {
    commit(types.SET_WAITTIME, waitTime)
}